//
//  MenuNnxjTableViewCell.m
//  土巴兔
//
//  Created by 千锋 on 16/1/8.
//  Copyright (c) 2016年 IOS1503薛凯. All rights reserved.
//

#import "MenuNnxjTableViewCell.h"
#import "Default.h"
#import "UIImageView+WebCache.h"
@implementation MenuNnxjTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self createUI];
    }
    return self;
}
- (void)createUI{
    _title=[[UILabel alloc] initWithFrame:CGRectMake(10, 10, 100, 20)];
    _title.text=@"暖暖的新家";
    [self.contentView addSubview:_title];
    
    _more=[[UIButton alloc] initWithFrame:CGRectMake(260, 10, 50, 15)];
    [self.contentView addSubview:_more];
    
    _imageview=[[UIImageView alloc] initWithFrame:CGRectMake(10, 40, DEVICEWIDTH-20, 150)];
    [_imageview setImage:[UIImage imageNamed:@"nuannuanfengmian.jpg"]];
    [self.contentView addSubview:_imageview];
    
    _context=[[UILabel alloc] initWithFrame:CGRectMake(10, 190, DEVICEWIDTH-20, 50)];
    _context.font=[UIFont systemFontOfSize:16];
    _context.numberOfLines=0;
    [self.contentView addSubview:_context];
}
- (void)relayoutWithData:(MenuNnxjModel *)model{
    _context.text=model.title;
}
@end
//@property (strong,nonatomic)UILabel* title;
//@property (strong,nonatomic)UIImageView* imageview;
//@property (strong,nonatomic)UILabel* context;
//- (void)relayoutWithData:(MenuNnxjModel*)model;